home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-08-22 | 3.0 KB | 76 lines | [TEXT/GEOL] |
- Item 1718535 5-Aug-89 20:08
-
- From: MACDTS Macintosh Developer Technical Supt.
-
- To: D4132 Farallon, R & D, PRT
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: Re- MacApp scrolling and...
-
- To: Joe Sensendorf, D4132
-
- Joe,
-
- If I understand your situation correctly, I think that your program could be
- made much simpler than you imagine it to be.
-
- As I see it, you essentially cache the part of the screen that is visible at
- the moment. Maybe even a little bit more, just for kicks. When your Draw method
- is called, you update the screen from this cache, rather than going through
- some laborious and lengthy calculations.
-
- This really doesn't have to be inconsistant with ScrollDraw. If you design you
- Draw method correctly, you won't have to override anything else, including
- ScrollDraw.
-
- Lets take a look at what happens in such a .Draw method:
-
- - You get called with with a parameter ("area") that specifies the rectangle
- bounding the area that needs to be updated.
- - IF "area" is wholly contained within the rectangle that specifies the part of
- your view that is cached, then you can simply call Copybits.
- - ELSE some area that is not cached needs to be drawn. In that case, you update
- your cache (either by re-imaging the entire thing, or by scrolling it with
- scrollrect and updating the new parts), and THEN transfer it to the screen.
-
- Does this answer your question? If not, please let me know!
-
- - Keith Rollin
- - Apple Developer Technical Support
-
-
- PS: Macintosh Developer Technical Support is attending MacWorld Boston in full
- force (even Clarus will be there); this means that we will be closed the week
- of the conference.
-
- Please do not submit any e-mails between 5:00 P.M. PDT on Sunday, August 6 and
- 5:00 P.M. PDT on Sunday, August 13. We hope that this does not inconvenience
- you too much, and that we will get the chance to see many of you at the show.
-
- Show attendees:
-
- Our staff will available at our debugging suite at the Westin Essex Ballroom,
- where we can meet (no waltzing, please) with you. We can accept apppointments
- for the hours of 4:00 P.M. to 9:00 P.M. on Wednesday-Friday (8/9-8/11). This
- will give you an opportunity to discuss your development successes or problems
- with our lovely and talented (well, lovely, anyway) engineers.
-
- Where exactly: the Westin Hotel on Copley Place, 10 Huntington Avenue, Boston.
- The ballroom is the Essex East and is located on the third floor.
-
- To make an appointment, you can send an AppleLink (or see below) to TRUJILLO1.
- Please specify the subject you wish to discuss and your preferred date and
- time. You will receive a confirmation back on AppleLink.
-
- APPLELINKS MUST BE SENT NO LATER THAN Friday, August 4th!
-
- If you don’t have access to AppleLink, it will be possible to schedule an
- appointment at the reception desk in the debugging room on a first come, first
- served basis. The room will open at four o’clock, Wednesday thru Friday.
-
- Thanks,
-
- Macintosh Developer Technical Support
-
-